@extends('layouts.home')

@section('content')
    @if(count($errors) > 0)
        <blockquote class="layui-elem-quote layui-bg-red">
                @foreach($errors->all() as $error)
                    {{ $error }} &nbsp;&nbsp;
                @endforeach
        </blockquote>
    @endif
    @if(Session::has('success'))
        <blockquote class="layui-elem-quote layui-bg-blue">
                {{ Session::get('success') }}
        </blockquote>
    @endif
    <div class="layui-card">
        <div class="layui-card-header">修改密码</div>
        <div class="layui-card-body">
            <form class="layui-form" action="{{ route('setting.security.update') }}" method="post">
                {{ csrf_field() }}
                <div class="layui-form-item">
                    <label class="layui-form-label">新密码</label>
                    <div class="layui-input-inline">
                        <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">请输入6-16个字符，区分大小写</div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">确认密码</label>
                    <div class="layui-input-inline">
                        <input type="password" name="confirm_password" required lay-verify="required" placeholder="请再次输入新密码" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">请输入6-16个字符，区分大小写</div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection

@section('scriptsAfterJs')

@endsection
